package cn.iocoder.yudao.module.picturebook.controller.admin.book.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 书籍信息新增/修改 Request VO")
@Data
@Builder
public class BookSaveReqVO {

    @Schema(description = "书籍ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1593")
    private Long id;

    @Schema(description = "书名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "书名不能为空")
    private String title;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "出版社")
    private String publisher;

    @Schema(description = "封面图URL", example = "https://www.iocoder.cn")
    private String coverUrl;

    @Schema(description = "语言：1-中文，2-英文", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "语言：1-中文，2-英文不能为空")
    private Integer language;

    @Schema(description = "分级（如“牛津树1级”）")
    private String level;

    @Schema(description = "分类（如“古诗词”“成语绘本”）")
    private String category;

}